import { http } from "@/utils/http";
import type { Result } from "@/api/typeConfig";

export const listApi = params =>
  http.request<Result>("get", "/system/dept/list", { params });

export const exportApi = data =>
  http.request<Result>("post", "/system/dept/export", {
    data,
    responseType: "blob"
  });

export const allListApi = params =>
  http.request<Result>(
    "get",
    `/system/dept/optionSelect/${params.warehouseId}`
  );
